<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo: Référence du fichier TesteurLabyrintheLinux.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_testeur_labyrinthe_linux_8cpp.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier TesteurLabyrintheLinux.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;gtest/gtest.h&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &quot;<a class="el" href="_labyrinthe_8h_source.html">Labyrinthe.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de TesteurLabyrintheLinux.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_labyrinthe_linux_8cpp__incl.png" border="0" usemap="#_testeur_labyrinthe_linux_8cpp" alt=""/></div>
<map name="_testeur_labyrinthe_linux_8cpp" id="_testeur_labyrinthe_linux_8cpp">
</map>
</div>
</div>
<p><a href="_testeur_labyrinthe_linux_8cpp_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr class="memitem:a1eea07ba68f0f323aa73b97743393b26"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_labyrinthe_linux_8cpp.html#a1eea07ba68f0f323aa73b97743393b26">TEST</a> (<a class="el" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a>, testSolution)</td></tr>
<tr class="separator:a1eea07ba68f0f323aa73b97743393b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentation des fonctions</h2>
<a class="anchor" id="a1eea07ba68f0f323aa73b97743393b26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">testSolution&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_labyrinthe_linux_8cpp_source.html#l00015">15</a> du fichier <a class="el" href="_testeur_labyrinthe_linux_8cpp_source.html">TesteurLabyrintheLinux.cpp</a>.</p>

<p>Références <a class="el" href="_chemin_8cpp_source.html#l00175">TP1::Chemin::afficheChemin()</a>, <a class="el" href="_porte_8h_source.html#l00025">TP1::Bleu</a>, <a class="el" href="_labyrinthe_8cpp_source.html#l00549">TP1::Labyrinthe::chargeLabyrinthe()</a>, <a class="el" href="_labyrinthe_8cpp_source.html#l00125">TP1::Labyrinthe::cheminLabyrinthe()</a>, <a class="el" href="_porte_8h_source.html#l00025">TP1::Jaune</a>, <a class="el" href="_porte_8h_source.html#l00025">TP1::Rouge</a>, et <a class="el" href="_porte_8h_source.html#l00025">TP1::Vert</a>.</p>
<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a> lab;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    ifstream entree(<span class="stringliteral">&quot;FichiersLabyrintheLinux/Lab10x10/Rouge10x10.txt&quot;</span>);</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;Fichier rouge introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    }</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>, entree);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe rouge charge.\n&quot;</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    entree.close(); <span class="comment">//on ferme le fichier</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    entree.open(<span class="stringliteral">&quot;FichiersLabyrintheLinux/Lab10x10/Vert10x10.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;Fichier vert introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    }</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">Vert</a>, entree);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe vert charge.\n&quot;</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    entree.close();</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    entree.open(<span class="stringliteral">&quot;FichiersLabyrintheLinux/Lab10x10/Bleu10x10.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;Fichier bleu introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">Bleu</a>, entree);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe bleu charge.\n&quot;</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    entree.close();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    entree.open(<span class="stringliteral">&quot;FichiersLabyrintheLinux/Lab10x10/Jaune10x10.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;Fichier jaune introuvable.\n\n&quot;</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">Jaune</a>, entree);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe jaune charge.\n&quot;</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    entree.close();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="class_t_p1_1_1_chemin.html">Chemin</a> soluce;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    soluce = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">cheminLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    soluce.<a class="code" href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">afficheChemin</a>();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;}</div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">TP1::Rouge</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_a854dc263c65a447286038fde7843ec41"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">TP1::Labyrinthe::chargeLabyrinthe</a></div><div class="ttdeci">void chargeLabyrinthe(Couleur couleur, std::ifstream &amp;entree)</div><div class="ttdoc">méthode permettant de charger un fichier contenant un labyrinthe d&#39;une certaine couleur ...</div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00549">Labyrinthe.cpp:549</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html">TP1::Labyrinthe</a></div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8h_source.html#l00031">Labyrinthe.h:31</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">TP1::Bleu</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_ac6e2db78398a84ccf495e318df7643d0"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">TP1::Labyrinthe::cheminLabyrinthe</a></div><div class="ttdeci">Chemin cheminLabyrinthe(Couleur joueur)</div><div class="ttdoc">Méthode permettant de trouver un chemin pour solutionner le labyrinthe pour une couleur donnée...</div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00125">Labyrinthe.cpp:125</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">TP1::Jaune</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_chemin_html_a3d4758db7e75c5fe85b0ac8f056c40dc"><div class="ttname"><a href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">TP1::Chemin::afficheChemin</a></div><div class="ttdeci">void afficheChemin() const </div><div class="ttdoc">Affiche le chemin en console, ligne par ligne, avec le nom et la distance du début de chaque pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_chemin_8cpp_source.html#l00175">Chemin.cpp:175</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">TP1::Vert</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_chemin_html"><div class="ttname"><a href="class_t_p1_1_1_chemin.html">TP1::Chemin</a></div><div class="ttdoc">Classe implémentant une liste simplement chaînée de pièces représentant un chemin dans un labyrinthe...</div><div class="ttdef"><b>Definition:</b> <a href="_chemin_8h_source.html#l00026">Chemin.h:26</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_labyrinthe_linux_8cpp_a1eea07ba68f0f323aa73b97743393b26_cgraph.png" border="0" usemap="#_testeur_labyrinthe_linux_8cpp_a1eea07ba68f0f323aa73b97743393b26_cgraph" alt=""/></div>
<map name="_testeur_labyrinthe_linux_8cpp_a1eea07ba68f0f323aa73b97743393b26_cgraph" id="_testeur_labyrinthe_linux_8cpp_a1eea07ba68f0f323aa73b97743393b26_cgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_testeur_labyrinthe_linux_8cpp.html">TesteurLabyrintheLinux.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
